package com.longe.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("user")
public class UserController {

    @Value("${spring.profiles.active}")
    private String ENV;

    @RequestMapping("login")
    public void login(){

        log.info(ENV + "——我来测试的......");
        log.error(ENV + "——我来测试的......");
    }

}
